Macy’s Inc. plans to close 35 to 40 underperforming department stores early next year and will announce specific locations later.